package com.hmall.common.interceptor;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置类
 */
@Configuration
public class FeignConfig {
    /**
     * 吧我们自定义的feign拦截器交给spring管理
     * @return
     */
    @Bean
    public MyFeignInterceptor myFeignInterceptor(){
        return new MyFeignInterceptor();
    }
}
